package com.qf.fmw.dao.impl;

import com.qf.fmw.dao.UserDao;
import com.qf.fmw.entity.bo.MessageBo;
import junit.framework.TestCase;
import org.junit.Test;

import java.util.List;

public class UserDaoImplTest extends TestCase {
  private UserDao userDao = new UserDaoImpl();

  @Test
    public void testSelectUserMessage() {
    List<MessageBo> userBos = userDao.selectUserMessage(31);
    System.out.println(userBos);
    }

    @Test
    public void testRegisterUser() {
    boolean b = userDao.registerUser("test", "123456", "123456@qq.com", "男");
    }

    @Test
  public void testIsUsernameExists() {
    boolean b = userDao.isUsernameExists("test");
      System.out.println(b);
  }
}
